<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/base/taglibs.jsp"%>
<%@include file="/WEB-INF/jsp/base/head.jsp"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/js/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<title>修改餐厅菜单</title>
</head>
<body>
	<div class="edit-wapper">
		  <label class="lab" style="color: red;font-weight:bold;margin-bottom: 20px;font-size: large;">修改餐厅菜单菜品</label>
	  </div>
      <s:form action="dishesAction!dishesEdit.do" namespace="/dishes" name="form1" method="post" enctype="multipart/form-data">
      	<input type="hidden" name="dishesBizBean.id" value="${dishesBizBean.id}" />
      	<input type="hidden" name="dishesBizBean.rmName" value="${dishesBizBean.rmName}" />
      	<input type="hidden" name="dishesBizBean.rmid" value="${dishesBizBean.rmid}" />
      	<input type="hidden" name="dishesBizBean.rid" value="${dishesBizBean.rid}" />
          <div class="edit-wapper">
	       <label class="lab">菜品名称：</label>
	       <input type="text" name="dishesBizBean.title" id="title" class="inputText" maxlength="30" value="${dishesBizBean.title}"  style="width: 450px" />
	       <label class="error" >*&nbsp;&nbsp;<s:property value="%{errors['title'][0]}"/></label>
       </div>
       <div class="edit-wapper" >
       		<label class="lab">菜品价格：</label>
       		<input type="text" name="dishesBizBean.price" id="price" class="inputText" maxlength="30" value="${dishesBizBean.price}"  style="width: 450px" />
       		<label class="error" >*&nbsp;&nbsp;<s:property value="%{errors['price'][0]}"/></label>
       </div>
       <div class="edit-wapper" >
      		<label class="lab">菜品介绍：</label>
      		<textarea rows="5" name="dishesBizBean.dishesIntroduction" id="dishesIntroduction" class="inputText" style="width: 450px" >${dishesBizBean.dishesIntroduction}</textarea> 
       </div>
       
        <div class="edit-wapper">
        	<label class="lab">相片：</label><s:file name="files" ></s:file>
        	<a href="<%=request.getContextPath() %>/restaurant/${dishesBizBean.imagePath}" id="imagePath">
        		<img alt="相片" src="<%=request.getContextPath() %>/restaurant/${dishesBizBean.imagePath}" width="50px" height="50px">
        	</a>
        </div>
        <div class="btn-wapper">
       	   <s:submit cssClass="form-btn" value="修改" action="dishesAction"  method="dishesEdit" id="btnEnter"/>
       	   <input type="button" class="form-btn" onclick="history.go(-1);" value="返回" />
        </div>
      </s:form>
</body>
<script type="text/javascript">
$(function(){
	$("#imagePath").each(function(index){
		$(this).fancybox();
	});
});
</script>
</html>